PROJECT(libofd)

CMAKE_MINIMUM_REQUIRED(VERSION 3.6)

INCLUDE_DIRECTORIES(
    ./include
)

LINK_DIRECTORIES(
    /usr/local/lib
)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
SET(LIBOFD_DEPENDICES freetype cairo tinyxml2 zip stdc++)

# cmake policy CMP0042
# ``MACOSX_RPATH`` is enabled by default
SET(CMAKE_MACOSX_RPATH 0)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)

ADD_TEST(ofdtest ${PROJECT_BINARY_DIR}/bin/ofdtest)
ENABLE_TESTING()
